package com.tfswue.mxj.listener;


import com.tfswue.mxj.listener.MyContextListener;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ListenerConfig {
    @Bean
    public ServletListenerRegistrationBean<MyContextListener> myContextListenerServletListenerRegistrationBean(){
        return new ServletListenerRegistrationBean<>(new MyContextListener());
    }
/*@Bean
public ServletListenerRegistrationBean<MyContextListener> myContextListenerServletListenerRegistrationBean(){
return new ServletListenerRegistrationBean<>(new MyContextListener());
}*/
}
